body {
    //变量
    --lightShadow: #fafafa;
    --darkShadow: #d1d9e6;
    --mainColor: #fff;
	--textColor:#333333;
	--titleUnderLine:#eee;
	--codeText:#777777;
}
// html基础配置
html {
    font-size: 16px;
}
body {
    font-family: "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    color: var(--textColor);
    line-height: 1.6;
}
::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 0px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 0px;
    scrollbar-arrow-color: red;
}
#box-shadow() {
    bs: 1px 1px 15px var(--darkShadow), -1px -1px 15px var(--lightShadow);
}


//配合 highlight.js 的片段  
#md{
	code{
		span {
		    margin: 0 0.2em;
		}
		&::before{
			color: var(--codeText);
		}
		
	}
	code.javascript::before {
	    content: "JS";
	}
	code.html::before{
		content: 'HTML'!important;
	}
	code.css::before{
		content:'css'
	}code.c::before{
		content:'C'
	}code.bash::before{
		content:'Bash'
	}code.markdown::before{
		content:'Markdown'
	}code.go::before{
		content:'Go'
	}code.http::before{
		content:'HTTP'
	}code.java::before{
		content:'Java'
	}code.json::before{
		content:'JSON'
	}code.kotlin::before{
		content:'Kotlin'
	}code.less::before{
		content:'Less'!important;
	}code.lua::before{
		content:'Lua'
	}code.object-c::before{
		content:'Objective-C'
	}code.php::before{
		content:'php'
	}code.python::before{
		content:'Python'
	}code.scss::before{
		content:'SCSS'!important;
	}code.sql::before{
		content:'SQL'
	}code.swift::before{
		content:'Swift'
	}code.yaml::before{
		content:'yaml'
	}code.typescript::before{
		content:'TS'
	}code.xml::before{
		content:'XML'
	}
}


/* main class下为Markdown格式 */

#md {
    font-size: 16px !important;
    max-width: 760px;

    p {
        text-indent: 2em;
        line-height: 1.5em;
        margin: 0.8em 0;
       
    }

    blockquote {
        margin: 0.8em 0;
        border-left: 4px solid #dfe2e5;
        padding: 0 15px;
        color: var(--codeText);

        table {
            padding: 0;
            word-break: initial;
        }

        blockquote {
            padding-right: 0;
        }


        &::before {
            content: "“";
            font-family: cursive;
            padding: 21px 3px 5px;
            line-height: 15px;
            height: 15px;
            font-weight: 600;
            z-index: 99;
            font-size: xxx-large;
            opacity: 0.2;
            position: absolute;
            margin: -7px 0px 0px -34px;
        }
    }

    pre {
        margin: 30px 0;
        border: 0;
        padding: 20px 36px 20px 35px;
        line-height: 1.9em;
        background-color: white;
        border-radius: 34px;
        font-family: unset;
        box-shadow: #box-shadow[bs];

        code {
            color: var(--codeText);
            background: 0;
            border: 0;
            font-size: 18px;
            box-shadow: none;
			position: relative!important;
            &::before {
                font-family: unset;
				color:var(--textColor);
                position: absolute;
                text-align: right;
                font-size: 1.2em;
                line-height: 15px;
                height: 15px;
                font-weight: 600;
                z-index: 99;
				right:0;
				top:0;
            }

            
        }
        
    }

    a {
        text-decoration: none;
        color: #4183c4;
        transition: color 0.2s;
        &:hover {
            color: #d63200;
        }
    }
    h1 {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-weight: bold;
        cursor: text;
        padding-top: 0.3em;
        padding-bottom: 0.2em;
        font-size: 2.6em;
        line-height: 1.2;
        border-bottom: 2px solid var(--titleUnderLine);
    }

    h2 {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-weight: bold;
        cursor: text;

        padding-bottom: 0.2em;
        font-size: 2em;
        line-height: 1.225;
        border-bottom: 2px solid var(--titleUnderLine);
    }

    h3 {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 0.3rem;
		
        font-weight: bold;
        cursor: text;
        font-size: 1.61em;
        line-height: 1.43;
    }

    h4 {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-weight: bold;
        cursor: text;
        font-size: 1.35em;
    }

    h5 {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-weight: bold;
        cursor: text;
        font-size: 1em;
    }

    h6 {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-weight: bold;
        cursor: text;
        font-size: 1em;
        color: #777;
    }

    hr {
        height: 2px;
        padding: 0;
        margin: 16px 0;
        background-color: #e7e7e7;
        border: 0 none;
        overflow: hidden;
        box-sizing: content-box;
    }

    li{
         ol,ul{
             margin: 0 0;
         }
         p.first {
            display: inline-block;
        }
    }

    

    ul,
    ol {
        padding-left: 30px;
        &:first-child {
            margin-top: 0;
        }

        &last-child {
            margin-bottom: 0;
        }
    }
    code {
        color: #d63200;
        margin: 0 10px;
             padding:1px 7px;
        border-radius: 6px;
        
        box-shadow: #box-shadow[bs];
        font-family: unset;
        font-size: 0.9em;
    }

   



    table{
        box-shadow: #box-shadow[bs];
        padding: 12px;
		margin: 40px 10px;
        tr {
            
            
            margin: 0;
            padding: 0;
            
            &:nth-child(2n) {
                background-color: #fafafa;
            }
            td {
                &:first-child {
                    margin-top: 0;
                }
    
                margin: 0;
                padding: 6px 13px;
            }
    
            th {
                background-color: #dddddd;
                &:first-child {
                    margin-top: 0;
                }
    
                font-weight: bold;
                
                border-bottom: 0;
                margin: 0;
                padding: 6px 13px;
            }
    
            
        }
    }

    thead {
        background-color: #f8f8f8;
    }

}